home *** CD-ROM | disk | FTP | other *** search
/ Level 2005 Christmas (DVD) / Level_2005-XMAS_134_DVD_Knightshift.iso / Demos / Ski Racing 2006 / setup1.cab / DataCommonShadersDX8TexCombine.psh < prev    next >
Encoding:
Text File  |  2005-11-03  |  485 b   |  21 lines

  1. ps.1.1
  2.  
  3. def c0, 1.0, 1.0, 1.0, 1.0
  4. def c1, 0.4999, 0.4999, 0.4999, 0.4999
  5. def c2, 1.0, 1.0, 1.0, 1.0
  6.  
  7. tex t0 ;Backgroundtexture
  8. tex t1 ;Scene without bd texture
  9.  
  10.  
  11.  
  12.  
  13. dp3 r0, c0, t1        ;r1 is zero if color in scene texture is black
  14. add r0.a, r0, c1         ;add 0.49 so we can use the cnd function
  15. cnd r0, r0.a, t1, t0     ;if color in scene texture set black otherwise use background texture
  16.  
  17. ;mov r0.a, c2.w
  18. ;mov r0.a, t1.a         ;set alpha to 1, don't know if this is required
  19.  
  20.  
  21.